package com.wxy.demo.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 观察重写hashcode和equals
 */
@Data
@Accessors(chain = true)
public class Person implements Serializable {

    /**
     * 序列化ID
     */
    @Serial
    private static final long serialVersionUID = -5809782578272943999L;

    private String name;
    private int age;
    private String sex;

}
